import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/views/Index'
import ArticleList from '@/views/ArticleList'
import ArticleDetail from '@/views/ArticleDetail'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: Index
    },
    {
      path: '/article-list',
      name: 'articleList',
      component: ArticleList
    },
    {
      path: '/article-detail',
      name: 'articleDetail',
      component: ArticleDetail
    }
  ]
})
